package com.eastfair.pay.dto;

import com.eastfair.pay.enumeration.TransactionOrderOrderStatusEnum;
import com.eastfair.pay.enumeration.TransactionOrderOrderTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 同步在线支付的交易结果
 *
 * @author Du Xiaobo
 * @date 2023/5/9 9:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "PaymentDTO", description = "在线支付")
public class PaymentDTO implements Serializable {
    private static final long serialVersionUID = 4020889408366373019L;
    @ApiModelProperty(value = "业务订单号")
    private String orderNum;
    @ApiModelProperty(value = "订单类型")
    private TransactionOrderOrderTypeEnum orderType;
    @ApiModelProperty(value = "订单状态")
    private TransactionOrderOrderStatusEnum orderStatus;
    @ApiModelProperty(value = "银联交易流水号")
    private String transactionSerialNum;
    @ApiModelProperty(value = "付款金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "付款时间")
    private LocalDateTime paymentTime;
    @ApiModelProperty(value = "支付渠道")
    private String payChannel;
    @ApiModelProperty(value = "支付方式")
    private String payType;

}
